package github.sf.fw.tools.db;

public interface DbOperation {

    TableDataReader getTableDataLoader(DSProperty dsProperty);

    DataSourceMeta getDataSourceMeta(DSProperty properties, QueryFilter<String> schemaNameFilter);

    DataSourceMeta getDataSourceMeta(DSProperty properties);

    default AbstractTableDataWriter getTableDataWriter(DSProperty dsProperty) {
        throw new UnsupportedOperationException(String.format("%s暂不支持TableDataWriter", this.getClass().getSimpleName()));
    }
}
